ba32b07a5cec362b6806fac681dcc5a8fcb5e53f,src/main/java/weka/classifiers/pyscript/PyScriptClassifier.java,PyScriptClassifier,buildClassifier,#Instances#,201
Before Change
m_session = Utility.initPythonSession( this, getPythonCommand(), getDebug() );
// set the working directory of the python vm to that of the script
String parentDir = new File(getPythonFile()).getAbsoluteFile().getParent();
String scriptName = new File(getPythonFile()).getName();
if(parentDir != null) {
String driver = "import os\nos.chdir('" + parentDir + "')\n";
After Change
m_session = Utility.initPythonSession( this, getPythonCommand(), getDebug() );
// set the working directory of the python vm to that of the script
String parentDir = getPythonFile().getAbsoluteFile().getParent();
String scriptName = getPythonFile().getName();
if(parentDir != null) {
String driver = "import os\nos.chdir('" + parentDir + "')\n";